// $Id: reboot.c,v 1.1.1.1 2012/02/17 03:45:26 hzheng Exp $

#include <stdlib.h>

#include "log.h"

#include "reboot.h"

struct evcpe_reboot *evcpe_reboot_new(void)
{
	struct evcpe_reboot *method;

	evcpe_debug(__func__, "constructing evcpe_reboot");

	if (!(method = calloc(1, sizeof(struct evcpe_reboot)))) {
		evcpe_error(__func__, "failed to calloc evcpe_reboot");
		return NULL;
	}
	return method;
}

void evcpe_reboot_free(struct evcpe_reboot *method)
{
	if (!method) return;
	evcpe_debug(__func__, "destructing evcpe_reboot");
	free(method);
}

struct evcpe_factory *evcpe_factory_new(void)
{
	struct evcpe_factory *method;

	evcpe_debug(__func__, "constructing evcpe_factory");

	if (!(method = calloc(1, sizeof(struct evcpe_factory)))) {
		evcpe_error(__func__, "failed to calloc evcpe_factory");
		return NULL;
	}
	return method;
}

void evcpe_factory_free(struct evcpe_factory *method)
{
	if (!method) return;
	evcpe_debug(__func__, "destructing evcpe_factory");
	free(method);
}

